package com.atguigu.yygh.hosp;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author luoyin
 * @Date 20:29 2022/9/26
 **/
@Repository
public interface UserRepository extends MongoRepository<User,String> {
    List<User> findByUsernameLike(String name);

    List<User> findByUsername(String name);

}
